<h:panelGroup xmlns:h='http://java.sun.com/jsf/html'
              xmlns:f='http://java.sun.com/jsf/core'
              xmlns:p='http://primefaces.org/ui'
              xmlns:z='http://savanti.com.bo/ui' styleClass='ITVentaLote' id='ITVentaLote'><p:growl id='growl'/>

<z:beanMenubar bean='#{ITVentaLote}' title='PEDIDOS' dateIni='#{ITVentaLote.dateIni}' dateEnd='#{ITVentaLote.dateEnd}' process='tblPrd'/>

<p:blockUI block='tblPrd' trigger='btnSave'/>


<p:dataGrid columns='1' id='tblPrd' value='#{ITVentaLote.lsEntity}' var='x' paginator='true' paginatorPosition='bottom' rows='500' rendered='#{not empty ITVentaLote.lsEntity}'

            rowIndexVar='rowInd' paginatorAlwaysVisible='false' emptyMessage='' style='width:100%'>

<p:dataTable var='d' value='#{x.lsPedidoDetalle}'>

<p:column width='50'>

  <f:facet name='header'>

  <h:outputText value='#{x.fecha}' style='float:right'><f:convertDateTime pattern='dd.MM.yy'/></h:outputText>

  </f:facet>

  <h:outputText value='#{d.material.codigo}' style='float:right'/>

</p:column>

<p:column>

  <f:facet name='header'>

  <h:outputText value='#{x.id}' style='float:left'/>

  <h:outputText value='#{x.cliente.persona.nombre}' style='float:right'/>

  </f:facet>

  <h:outputText value='#{d.material.nombre}'/>

</p:column>

<p:column width='40'>

  <f:facet name='header'>

  <h:selectBooleanCheckbox value='#{x.check}' style='float:right' rendered="#{x.estado=='P'}"/>

  </f:facet>

  <z:outputN v='#{d.cantidad}' r='0'/>

</p:column>

</p:dataTable>

</p:dataGrid>

</h:panelGroup>  